package java基础.array;

/**
 * @author IT_Jay
 * @date 2022/1/17 9:52
 */

public class arrayDemo02 {
    public static void main(String[] args) {
        //静态初始化:   创建+赋值
        int[] a = {0,1,2,3,4,5,6,7,8,9};
        System.out.println(a[0]);
        Man[] mans = {new Man(),new Man()};

        //动态初始化: 包含默认初始化
        int[] b =  new int[10];
        b[0] = 10;
        System.out.println(b[0]+b[1]);
    }
}
